cmake_minimum_required(VERSION 2.8)
project(aruco_location)

find_package(catkin REQUIRED COMPONENTS
  cv_bridge
  geometry_msgs
  roscpp
  rospy
  sensor_msgs
  tf2
  tf2_ros
)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

include_directories(
  /usr/include/eigen3
)

catkin_package()

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)


add_library(my_aruco SHARED
  src/aruco_location.cpp 
  src/read_param.cpp
)

target_link_libraries(my_aruco 
  ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

add_executable(aruco_location_node src/aruco_location_node.cpp )
target_link_libraries(aruco_location_node my_aruco)

add_executable(aruco_generation_node src/aruco_generation_node.cpp )
target_link_libraries(aruco_generation_node ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

# add_executable(check_tf src/check_tf.cpp)
# target_link_libraries(check_tf ${catkin_LIBRARIES})

